#if !defined(AFX_EXAM1_H__DE6A8B78_7F6C_41BF_9C73_48119A86F420__INCLUDED_)
#define AFX_EXAM1_H__DE6A8B78_7F6C_41BF_9C73_48119A86F420__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Exam1.h : header file
//

#include "MyButton.h"

/////////////////////////////////////////////////////////////////////////////
// CExam dialog
class SJ;

class CExam : public CDialog
{
// Construction
public:

	
public:
	CString Qparameter(_variant_t a);
	void ListToEdit();
	void againshow();
	void reshow();
	void ClearContent();
	int ConvertIndex(int nCurrent, int nTotal);
	void Give();
	CString strTableName;
	void initlistshangji();

	void initexam(CString dbitem);
	CExam(CWnd* pParent = NULL);   // standard constructor

	int e_rem;
	
// Dialog Data
	//{{AFX_DATA(CExam)
	enum { IDD = IDD_DIALOG_EXAM };
	CComboBox	m_xzsjb;
	CComboBox	m_ccexam;
	CListCtrl	m_examlist;
	CXPButton	m_Ctn2;
	CXPButton	m_Ctn3;
	CXPButton	m_Ctn4;
	CXPButton	m_Ctn5;
	CXPButton	m_Ctn6;
	CXPButton	m_Ctn7;
	CXPButton	m_Ctn8;
	CXPButton	m_Ctn9;
	CXPButton	m_Ctn10;
	CXPButton	m_Ctn11;
	CString	m_TitleNum;
	CString	m_TitleType;
	CString	m_Score;
	CString	m_Filename;
	CString	m_Filename2;
	CString	m_point;
	CString	m_scfilename;
	CString	m_StructName;
	CString	m_StructName2;
	CString	m_Sql;
	CString	m_jTname;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CExam)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CExam)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonSj();
	afx_msg void OnButtonTk();
	afx_msg void OnButtonXz();
	afx_msg void OnButtonExit();
	afx_msg void OnDestroy();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClickLISTshangji(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnExamLast();
	afx_msg void OnExamNext();
	afx_msg void OnButtonCheck();
	afx_msg void OnButtonAdd();
	afx_msg void OnBUTTONmod();
	afx_msg void OnBUTTONscjl();
	afx_msg void OnBUTTONempty();
	afx_msg void OnBUTTONreset();
	afx_msg void OnBUTTONrefresh();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	BOOL inixzsjb();
	int m_nCurrentIndex;
	int m_nTotal;
	long countl;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EXAM1_H__DE6A8B78_7F6C_41BF_9C73_48119A86F420__INCLUDED_)
